package cn.tedu._01mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;

@Controller
public class CartController
{
        @RequestMapping("/cart/add")
        @ResponseBody
        public String add()
        {
            return "添加成功";
        }
        @RequestMapping("/cart/list")
        @ResponseBody
        public String list()
        {
            return "list";
        }


}
